<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			var str="aa,12b3,78c";
			//以逗号为分割点将字符串分割成字符数组
			var result=str.split(",");
			document.write(result+"<br />");//返回结果：aa,12b3,78c
			document.write(result.length);//返回的字符数组的长度为3
		</script>
	</head>
	<body>
	</body>
</html>
